package com.qf.controller;

import com.qf.entity.StatOrder;
import com.qf.service.IOrderStatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>title: com.qf.controller</p>
 * <p>Company: wendao</p>
 * author zhuximing
 * date 2021/9/24
 * description:
 */
@RestController
@RequestMapping("stat/order")
@CrossOrigin
public class StatOrderController {

    @Autowired
    private IOrderStatService orderStatService;


    @GetMapping("info")
    public List<StatOrder> info(String start,String end){
        return orderStatService.findStatOrderByDate(start,end);
    }


}